css shadow: Fix memory leak
authorPavel Vasin <rat4vier@gmail.com>
Wed, 21 Aug 2013 10:56:21 +0000 (14:56 +0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 31 Aug 2013 16:28:17 +0000 (12:28 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=706493

gtk/gtkcssshadowvalue.c

index de345993316bac8bd698d2b5887cb5eaff9730fa..cdfd8526126552a891b794d016df614ef36c4242 100644 (file)
@@ -714,6 +714,8 @@ _gtk_css_shadow_value_paint_box (const GtkCssValue   *shadow,
       cairo_clip (cr);
       draw_shadow (shadow, cr, &box, &clip_box, FALSE);
       cairo_restore (cr);
+
+      cairo_region_destroy (remaining);
     }
 
   cairo_restore (cr);